const development = true // 开发环境
const port = 8848
const host = development ? `http://127.0.0.1:${port}`: `http://klcxy.com:${port}`
module.exports = {
    host,
    port,
    development,
    name: 'blog',
    // 用户默认头像
    defaulte_avatar_dir : host + '/images/avatar/default.webp',
    // 游客默认头像
    guest_avatar_dir : host + '/images/avatar/guest.webp',
    sign:"sdgfsdgsd456dasd4qwhm!@",
    unsign:"8778ads234#@$fds",
    // 文件默认上传目录
    mysql: {
        host: "127.0.0.1",
        port: 3306,
        user: development ? "root" : "fmsc.klcxy.com",
        password: development ? "123456" : "SP57DELX6ATmSpzk",
        database: "psychology"
    },
    redis: {
        host: "127.0.0.1",
        port: 6379,
        password: development ? '' : "YangJia55!!!",
        expireIn: 1800 * 2 * 1 //1小时
    },
    wx:{
        appid: development ? 'wx80241a239cc34105' : 'wx58fdb05c5919859a',
        secret: development ? '68a20ab34883e542f26877beecbae9aa' : '2c6ebd99efa58060c6958679efeb37e0',
        grant_type:'authorization_code',
    }
}